package com.admin.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author caixiaofeng
 * @version 1.0
 * @Description: <<菜单树>>
 * @company 个人学习
 * @create 2021-04-06 14:48
 */
@ApiModel("菜单树实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MenuTreeVo2 {
    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty("菜单名称")
    private String title;
    @ApiModelProperty("菜单类型")
    private Integer type;
    @ApiModelProperty("菜单图标")
    private String icon;
    @ApiModelProperty("子菜单树")
    private List<MenuTreeVo2> children;
}
